/*
 * CONTROLLER.cpp
 *
 * Created: 2014-01-02 12:20:34
 *  Author: Marcin
 */ 

#include <../inc/CONTROLLER.h>

PID_CONTROLLER::PID_CONTROLLER(uint16_t *pPV, uint16_t *pSP, uint16_t *pMV) : m_pPV(pPV), m_pSP(pSP), m_pMV(pMV), m_Se(0), m_AWU(0), m_PV_old(0) { }
	
PID_CONTROLLER::CALCULATE()
{
	m_Se += *m_pSP - *m_pPV;
	uint16_t R_PV = *m_pPV - m_PV_old;
	
}